import service from '@/utils/request'

export const useTeamApi = (id: number) => {
  return service.get('/biz/team/' + id)
}

export const useTeamSubmitApi = (dataForm: any) => {
  if (dataForm.id) {
    return service.put('/biz/team', dataForm)
  } else {
    return service.post('/biz/team', dataForm)
  }
}

export const useTeamListApi = (dataForm) => {
  return service.get('/biz/team/list', {
    params: dataForm
  })
}
